#ifndef PREFERENCE_H
#define PREFERENCE_H

#include <QDebug>
#include <QWidget>

#include "PreferencesService.h"

namespace Ui {
class Preference;
}

class Preference : public QWidget
{
    Q_OBJECT

public:
    Preference(PreferencesService *preS);
    ~Preference();

private:
    Ui::Preference *ui;

signals:
    void updateExportData();

public slots:
    void setDefaultPath();

public:
    void closeEvent(QCloseEvent *event); // 窗口关闭事件
    void renderConfigData();
    void updateConfigData();

private:
    PreferencesService *preferencesService;
    QHash<QString,QString> configData;
    QString fPath;

};

#endif // PREFERENCE_H
